package com.pmt.feedplayer.ui

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextAlign
import com.pmt.feedplayer.controller.PlayerController

/**
 * JVM平台的播放器视图实现（用于开发和测试环境）
 */
actual @Composable
fun PlatformPlayerView(controller: PlayerController, modifier: Modifier) {
    Box(
        modifier = modifier.fillMaxSize()
    ) {
        // JVM平台不支持实际的视频播放，显示提示文本
        Text(
            text = "JVM Platform - Video Player Preview",
            color = Color.White,
            textAlign = TextAlign.Center,
            modifier = Modifier.fillMaxSize()
        )
    }
}